<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: Power consumption - Classes using/defining power consumption</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00530.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a>  </div>
  <div class="headertitle">
<div class="title">Power consumption - Classes using/defining power consumption</div>  </div>
</div>
<div class="contents">
<div class="dynheader">
Collaboration diagram for Power consumption - Classes using/defining power consumption:</div>
<div class="dyncontent">
<center><table><tr><td><img src="a00530.png" border="0" alt="" usemap="#a00530"/>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00087.html">DrawAmount</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the amount of power drawn by a device from a power source.  <a href="a00087.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00018.html">BaseBattery</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Base class for any power source.  <a href="a00018.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00140.html">MiximBatteryAccess</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Extends <a class="el" href="a00027.html" title="Base class for all simple modules of a host.">BaseModule</a> by several methods which provide access to the battery module.  <a href="a00140.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html">HostState</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="a00098.html" title="HostState is published by the battery to announce host failure.">HostState</a> is published by the battery to announce host failure.  <a href="a00098.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00072.html">Decider80211Battery</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Extends <a class="el" href="a00071.html" title="Decider for the 802.11 modules.">Decider80211</a> by drawing power during receiving of messages.  <a href="a00072.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00174.html">PhyLayerBattery</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Extends <a class="el" href="a00173.html" title="Provides initialisation for several AnalogueModels and Deciders from modules directory.">PhyLayer</a> by adding power consumption for tx, rx and idle.  <a href="a00174.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00175.html">PhyLayerUWBIR</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Physical layer that models an Ultra Wideband Impulse Radio wireless communication system.  <a href="a00175.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00032.html">BatteryState</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">residual capacity of battery  <a href="a00032.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00033.html">BatteryStats</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">collects and formates statistical data from the battery  <a href="a00033.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00084.html">DeviceEntry</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">per-device/per-account record of battery consumption, is passed to <a class="el" href="a00033.html" title="collects and formates statistical data from the battery">BatteryStats</a> on finish()  <a href="a00084.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00193.html">SimpleBattery</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A simple linear model of battery consumption.  <a href="a00193.html#details">More...</a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="image">
<img src="power.png" alt="power.png"/>
<div class="caption">
Classes handling power consumption and host state</div></div>
<p> Every <a class="el" href="a00027.html" title="Base class for all simple modules of a host.">BaseModule</a> automatically receives <a class="el" href="a00098.html" title="HostState is published by the battery to announce host failure.">HostState</a> changes by the signaling mechanism. <a class="el" href="a00027.html" title="Base class for all simple modules of a host.">BaseModule</a> itself raises an error inside "handleHostState()" method if the hosts state changes to something else then active. This means every host module (which derives from <a class="el" href="a00027.html" title="Base class for all simple modules of a host.">BaseModule</a>) has to override this method if it wants to work with host states other then active (like sleep, or off).</p>
<p><a class="el" href="a00018.html" title="Base class for any power source.">BaseBattery</a> defines the methods every battery module (or power source) has to implement for tracking power consumption. <a class="el" href="a00140.html" title="Extends BaseModule by several methods which provide access to the battery module.">MiximBatteryAccess</a> provides for every host module access to the battery (/power source) by providing methods for registration with and drawing power from the battery.</p>
<p><a class="el" href="a00193.html" title="A simple linear model of battery consumption.">SimpleBattery</a> is a simple implementation of a battery module. <a class="el" href="a00174.html" title="Extends PhyLayer by adding power consumption for tx, rx and idle.">PhyLayerBattery</a> and BurstApplicationLayerBattery are only two examples for host modules which support power consumption and host state changes. </p>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:31 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
